/*************************************************
File name: Const.h
Author: Scott Luo Version: 1.0  Date: 2009-01-20
Description:
Others:
Function List:
*************************************************/
#ifndef _CONST_H_
#define _CONST_H_

#define UInt8 unsigned char
#define Int8 signed char

#define UInt16 unsigned short
#define Int16 signed short

#define UInt32 unsigned long
#define Int32 signed long

#define BitField unsigned char

#define _BIG_ENDIAN_    0
#define _LITTLE_ENDIAN_ 1


#define YES 1
#define NO  0


#define TRUE    1
#define FALSE   0

//return code
#define RET_OK          0   
#define RET_FAIL        1
#define RET_INVALIDDATA 2
#define RET_SETDENIED   3

#define RET_INDEXERROR  11
#define RET_PARAMERROR  12   
#define RET_WRITEFAILED 13   
#define RET_READFAILED  14   
#define RET_NOMEMARY    20

#define RET_INVALID_PRI 21


#define RETRY_TIMES 5  

#define NOT_FIND 0xff

#endif /* _CONST_H_ */

